require File.join(File.dirname(__FILE__), 'flickr_api')

photoset_id, destination_path = ARGV[0], ARGV[1]
size = ARGV[2] || "Original"

puts photoset_id
puts destination_path
puts size

if photoset_id.nil?
  fail "You must provide a photoset id to download from flickr"
end

destination_path ||= File.dirname(__FILE__)

api = FlickrApi.new(size)
api.authorize
api.download_photoset(photoset_id, destination_path)
